package jp.gr.java_conf.ryz.summarize.shared.model;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Category implements IsSerializable
{
	private String _name;
	private List<Board> _boards = new ArrayList<Board>();
	
	
	@Override
	public String toString()
	{
		StringBuilder sb = new StringBuilder();
		sb.append("CategoryName : " + _name + "\n");
		for (Board board : _boards)
		{
			sb.append(board.toString() + "\n");
		}
		return sb.toString();
	}
	
	
	public String getName()
	{
		return _name;
	}
	
	public void setName(String name)
	{
		_name = name;
	}
	
	public List<Board> getBoards()
	{
		return _boards;
	}
	
	public void setBoards(List<Board> boards)
	{
		_boards = boards;
	}
	
	public void addBoard(Board board)
	{
		_boards.add(board);
	}
}
